package com.shiliu.api;

import com.shiliu.model.pojo.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * @description: TODO
 * @author: shili
 * @created: 2019/12/25 20:23
 * @version: v1.0.0
 */
@Api(tags = "登录功能模块")
public interface LoginControllerApi {
    @ApiOperation(value = "用户登录功能,并获取API接口的token",httpMethod = "POST")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "username",value = "登录用户名",required = true),
            @ApiImplicitParam(name = "password",value = "登录密码",required = true)
    })
    ResponseResult login(String username,String password);
}
